package com.beiye.drivertransport.adapter;

import android.content.Context;
import android.widget.TextView;

import com.beiye.drivertransport.R;
import com.beiye.drivertransport.bean.WarningSecondDangerBean;

/**
 * Created by ky on 2018/5/29.
 */

public class SubWarnSecondDangerApt extends ListBaseAdapter<WarningSecondDangerBean.RowsBean> {

    protected Context context = null;


    public SubWarnSecondDangerApt(Context context){
        super(context);
        this.context = context;
    }

    @Override
    public int getLayoutId() {
        return  R.layout.warndanger_item_layout;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder,final int position) {
        TextView tv_warn = holder.getView(R.id.tv_warn);
        TextView tv_warn1 = holder.getView(R.id.tv_warn1);
        String OrgName = getDataList().get(position).getOrgName();
        int liNo =  getDataList().get(position).getLiNo();
        tv_warn.setText(OrgName);
        tv_warn1.setText(liNo+"");

    }




}